#include <iostream>
#include <boost/shared_ptr.hpp>
#include <string>

using namespace std;
using namespace boost;

int main()
{
	shared_ptr<string> p1(new string("hello"));
	shared_ptr<string> p2;
	shared_ptr<string> p3;
	shared_ptr<string> p4(new string("world"));
	p2 = p1;

	assert( p1 == p2 );
	assert( p1 != p3 );
	assert( p1 != p4 );
}

